#include <gtk/gtk.h>

int main(int argc,char *argv[])
{
    gtk_init(&argc,&argv);

    GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
//    GtkWidget *comboBox = combo_box_with_model();
    GtkWidget *vbox = gtk_vbox_new(TRUE, 1);
    GtkWidget *entry = gtk_entry_new();
    GtkWidget *btn = gtk_button_new_with_label("Finsh");
    GdkColor color_black_ = {0x0, 0x0, 0xFFFF, 0xFFFF};

	/* create the main, top level, window */
	gtk_window_set_title(GTK_WINDOW(window), TITLE);
	gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
	gtk_window_set_default_size(GTK_WINDOW(window), 250, 180);
	gtk_widget_modify_bg(window, GTK_STATE_NORMAL, &color_black_); /*设置为黑色背景*/

    gtk_container_add(GTK_CONTAINER(window), vbox);

    gtk_box_pack_start(GTK_BOX(vbox), entry, TRUE, TRUE, 0);
    gtk_box_pack_start(GTK_BOX(vbox), btn, TRUE, TRUE, 0);

    g_signal_connect_swapped(G_OBJECT(window), "destroy", G_CALLBACK(gtk_main_quit), G_OBJECT(window));

	/* make sure that everything, window and label, are visible */
	gtk_widget_show_all(window);

	/* start the main loop, and let it rest until the application is closed */
	gtk_main();

	return 0;
} 
